<meta charset="UTF-8">
<form role="form">
	<input type="hidden" name="id" data-th-value="${model.id}">
	<input type="hidden" name="bjId" data-th-value="${model.tbClass.id}">

	<div class="form-group">
		<label for="txt_stuNo">学号</label>
		<input type="text"  required name="stuNo" data-bv-digits="true" data-th-value=${model.stuNo} class="form-control" id="text_stuNo" placeholder="学号"
		data-bv-stringlength="true" data-bv-stringlength-min="4"
            data-bv-stringlength-max="30" data-bv-stringlength-message="学号长度在4到30之间">
	</div>
					
	<div class="form-group">
		<label for="txt_name">姓名</label>
		<input type="text" required  name="name" data-th-value="${model.name}" class="form-control" id="txt_name" placeholder="姓名"
		data-bv-stringlength="true" data-bv-stringlength-min="1"
            data-bv-stringlength-max="20" data-bv-stringlength-message="学生姓名长度在1到20之间">
	</div>
	
	<div class="form-group">
		<label >照片上传</label>
		<input id="lefile" type="file" name="file" style="display:none"> 
		<div class="input-group"> 
			<input id="photoCover" class="form-control" type="text"  readonly> 
			<span class="input-group-btn">
        		<button type="button" class="btn btn-default" onclick="$('input[id=lefile]').click();">上传</button>
     		 </span>
		</div>
	</div>
</form>
<script type="text/javascript"> 
$('input[id=lefile]').change(function() { 
$('#photoCover').val($(this).val()); 
}); 
</script>